package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName novel_shelf
 */
@TableName(value ="novel_shelf")
public class NovelShelf implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 小说名
     */
    private String novelName;

    /**
     * 小说简介
     */
    private String novelIntro;

    /**
     * 小说封面
     */
    private String novelCover;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 关联 大纲 章节 人物等
     */
    private Integer upperCategoryId;

    /**
     * 书籍id
     */
    private Integer novelMainId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 小说名
     */
    public String getNovelName() {
        return novelName;
    }

    /**
     * 小说名
     */
    public void setNovelName(String novelName) {
        this.novelName = novelName;
    }

    /**
     * 小说简介
     */
    public String getNovelIntro() {
        return novelIntro;
    }

    /**
     * 小说简介
     */
    public void setNovelIntro(String novelIntro) {
        this.novelIntro = novelIntro;
    }

    /**
     * 小说封面
     */
    public String getNovelCover() {
        return novelCover;
    }

    /**
     * 小说封面
     */
    public void setNovelCover(String novelCover) {
        this.novelCover = novelCover;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 关联 大纲 章节 人物等
     */
    public Integer getUpperCategoryId() {
        return upperCategoryId;
    }

    /**
     * 关联 大纲 章节 人物等
     */
    public void setUpperCategoryId(Integer upperCategoryId) {
        this.upperCategoryId = upperCategoryId;
    }

    /**
     * 书籍id
     */
    public Integer getNovelMainId() {
        return novelMainId;
    }

    /**
     * 书籍id
     */
    public void setNovelMainId(Integer novelMainId) {
        this.novelMainId = novelMainId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        NovelShelf other = (NovelShelf) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNovelName() == null ? other.getNovelName() == null : this.getNovelName().equals(other.getNovelName()))
            && (this.getNovelIntro() == null ? other.getNovelIntro() == null : this.getNovelIntro().equals(other.getNovelIntro()))
            && (this.getNovelCover() == null ? other.getNovelCover() == null : this.getNovelCover().equals(other.getNovelCover()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpperCategoryId() == null ? other.getUpperCategoryId() == null : this.getUpperCategoryId().equals(other.getUpperCategoryId()))
            && (this.getNovelMainId() == null ? other.getNovelMainId() == null : this.getNovelMainId().equals(other.getNovelMainId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNovelName() == null) ? 0 : getNovelName().hashCode());
        result = prime * result + ((getNovelIntro() == null) ? 0 : getNovelIntro().hashCode());
        result = prime * result + ((getNovelCover() == null) ? 0 : getNovelCover().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpperCategoryId() == null) ? 0 : getUpperCategoryId().hashCode());
        result = prime * result + ((getNovelMainId() == null) ? 0 : getNovelMainId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", novelName=").append(novelName);
        sb.append(", novelIntro=").append(novelIntro);
        sb.append(", novelCover=").append(novelCover);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", upperCategoryId=").append(upperCategoryId);
        sb.append(", novelMainId=").append(novelMainId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}